package com.hst.web.base.ui;

import com.hst.core.meta.MetaData;
import com.hst.core.meta.annotation.EField;
import com.hst.core.meta.annotation.EInfo;
import com.hst.core.meta.annotation.FieldQuery;
import com.hst.web.base.entity.TCardInfo;

@EInfo(name = "card-info", title = "卡管理", entity = TCardInfo.class)
public class CardInfo extends MetaData {

	@EField(name = "issueNo", title = "卡发行号", form = 2, query = FieldQuery.LIKE, validate = "required|numeric")
	private Integer issueNo;

	@EField(name = "cardType", title = "卡类型", viewer = "dict.cardType", editor = "select.cardType",validate = "required")
	private String cardType;

	@EField(name = "cardStatus", title = "卡状态", viewer = "dict.cardStatus", editor = "select.cardStatus",validate = "required")
	private String cardStatus;

	@EField(name = "cuid", title = "CUID", query = FieldQuery.LIKE,validate = "required")
	private String cuid;

	@EField(name = "cid", title = "CID", query = FieldQuery.LIKE,validate = "required")
	private String cid;

	@EField(name = "tid", title = "TID", query = FieldQuery.LIKE,validate = "required")
	private String tid;

	@EField(name = "qrCode", title = "二维码")
	private String qrCode;

	@EField(name = "cardFlag", title = "卡标识", viewer = "dict.cardFlag", editor = "select.cardFlag",validate = "required")
	private String cardFlag;

	@EField(name = "containerId", title = "所属箱号", query = FieldQuery.EQ , validate="numeric")
	private Integer containerId;

	@EField(name = "boxId", title = "所属盒号", query = FieldQuery.EQ , validate="numeric")
	private Integer boxId;

	@EField(name = "expiryDate", title = "卡有效期", editor = "date")
	private String expiryDate;

	public Integer getIssueNo() {
		return issueNo;
	}

	public void setIssueNo(Integer issueNo) {
		this.issueNo = issueNo;
	}

	public String getCardType() {
		return cardType;
	}

	public void setCardType(String cardType) {
		this.cardType = cardType;
	}

	public String getCardStatus() {
		return cardStatus;
	}

	public void setCardStatus(String cardStatus) {
		this.cardStatus = cardStatus;
	}

	public String getCuid() {
		return cuid;
	}

	public void setCuid(String cuid) {
		this.cuid = cuid;
	}

	public String getCid() {
		return cid;
	}

	public void setCid(String cid) {
		this.cid = cid;
	}

	public String getTid() {
		return tid;
	}

	public void setTid(String tid) {
		this.tid = tid;
	}

	public String getQrCode() {
		return qrCode;
	}

	public void setQrCode(String qrCode) {
		this.qrCode = qrCode;
	}

	public String getCardFlag() {
		return cardFlag;
	}

	public void setCardFlag(String cardFlag) {
		this.cardFlag = cardFlag;
	}

	public Integer getContainerId() {
		return containerId;
	}

	public void setContainerId(Integer containerId) {
		this.containerId = containerId;
	}

	public Integer getBoxId() {
		return boxId;
	}

	public void setBoxId(Integer boxId) {
		this.boxId = boxId;
	}

	public String getExpiryDate() {
		return expiryDate;
	}

	public void setExpiryDate(String expiryDate) {
		this.expiryDate = expiryDate;
	}

}
